Repository navigation
mcpx tests: poll the stats postcondition in the hooks firing test (#2609) - #2623
Conversation
) The payload wait fixed the first race; the full-system build then exposed a second one in the same test: the runner records its stats asynchronously after the hook process finishes, so the immediate Stats() assertion read Fired:0 under load. Poll the postcondition with the same waitFor helper. Test-only; assertions unchanged.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Follow-up to #2612. The frozen-tree switch build at fee1312 failed the same hooks test at a different line:
stats wrong: [{Name:rec Fired:0 ...}]— the payload landed (the #2612 wait passed), but the runner records its stats asynchronously after the hook process finishes, so the test's immediate Stats() assertion raced the recording under full-system build load.Fix: poll the stats postcondition with the same waitFor helper #2612 used for the payload. Test-only change; assertions unchanged. Verified: the single test passes -count=5 locally; the switch build's checkPhase is the full gate.
Refs #2609.
Need help on this PR? Tag
@codesmith-botwith what you need.